using System;
using System.Collections.Generic;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    public class hfg_company
    {
        private int? _id;
        private int? _gid;
        private int? _pid;
        private string _corpname = String.Empty;
        private string _corpname_e = String.Empty;
        private byte _corptype;
        private string _corpcountry = String.Empty;
        private string _corpprovince = String.Empty;
        private string _corpcity = String.Empty;
        private string _corpaddress = String.Empty;
        private string _corppost = String.Empty;
        private string _corptel = String.Empty;
        private string _corpfax = String.Empty;
        private string _corpemail = String.Empty;
        private string _confirstname = String.Empty;
        private string _conlastname = String.Empty;
        private string _congender = String.Empty;
        private string _contel = String.Empty;
        private string _conemail = String.Empty;
        private string _corporate = String.Empty;
        private string _corpiata = String.Empty;
        private byte _corpstatus;

        public hfg_company()
        {
        }

       

        //protected void LoadFromReader(SqlDataReader reader)
        //{
        //    if (reader != null && !reader.IsClosed)
        //    {
        //        _id = reader.GetInt32(0);
        //        if (!reader.IsDBNull(1)) _gid = reader.GetInt32(1);
        //        if (!reader.IsDBNull(2)) _pid = reader.GetInt32(2);
        //        if (!reader.IsDBNull(3)) _corpname = reader.GetString(3);
        //        if (!reader.IsDBNull(4)) _corpname_e = reader.GetString(4);
        //        if (!reader.IsDBNull(5)) _corptype = reader.GetByte(5);
        //        if (!reader.IsDBNull(6)) _corpcountry = reader.GetString(6);
        //        if (!reader.IsDBNull(7)) _corpprovince = reader.GetString(7);
        //        if (!reader.IsDBNull(8)) _corpcity = reader.GetString(8);
        //        if (!reader.IsDBNull(9)) _corpaddress = reader.GetString(9);
        //        if (!reader.IsDBNull(10)) _corppost = reader.GetString(10);
        //        if (!reader.IsDBNull(11)) _corptel = reader.GetString(11);
        //        if (!reader.IsDBNull(12)) _corpfax = reader.GetString(12);
        //        if (!reader.IsDBNull(13)) _corpemail = reader.GetString(13);
        //        if (!reader.IsDBNull(14)) _confirstname = reader.GetString(14);
        //        if (!reader.IsDBNull(15)) _conlastname = reader.GetString(15);
        //        if (!reader.IsDBNull(16)) _congender = reader.GetString(16);
        //        if (!reader.IsDBNull(17)) _contel = reader.GetString(17);
        //        if (!reader.IsDBNull(18)) _conemail = reader.GetString(18);
        //        if (!reader.IsDBNull(19)) _corporate = reader.GetString(19);
        //        if (!reader.IsDBNull(20)) _corpiata = reader.GetString(20);
        //        if (!reader.IsDBNull(21)) _corpstatus = reader.GetByte(21);
        //    }
        //}

       

        #region Public Properties
        public int? Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int? gid
        {
            get { return _gid; }
            set { _gid = value; }
        }

        public int? pid
        {
            get { return _pid; }
            set { _pid = value; }
        }

        public string corpname
        {
            get { return _corpname; }
            set { _corpname = value; }
        }

        public string corpname_e
        {
            get { return _corpname_e; }
            set { _corpname_e = value; }
        }

        public byte corptype
        {
            get { return _corptype; }
            set { _corptype = value; }
        }

        public string corpcountry
        {
            get { return _corpcountry; }
            set { _corpcountry = value; }
        }

        public string corpprovince
        {
            get { return _corpprovince; }
            set { _corpprovince = value; }
        }

        public string corpcity
        {
            get { return _corpcity; }
            set { _corpcity = value; }
        }

        public string corpaddress
        {
            get { return _corpaddress; }
            set { _corpaddress = value; }
        }

        public string corppost
        {
            get { return _corppost; }
            set { _corppost = value; }
        }

        public string corptel
        {
            get { return _corptel; }
            set { _corptel = value; }
        }

        public string corpfax
        {
            get { return _corpfax; }
            set { _corpfax = value; }
        }

        public string corpemail
        {
            get { return _corpemail; }
            set { _corpemail = value; }
        }

        public string confirstname
        {
            get { return _confirstname; }
            set { _confirstname = value; }
        }

        public string conlastname
        {
            get { return _conlastname; }
            set { _conlastname = value; }
        }

        public string congender
        {
            get { return _congender; }
            set { _congender = value; }
        }

        public string contel
        {
            get { return _contel; }
            set { _contel = value; }
        }

        public string conemail
        {
            get { return _conemail; }
            set { _conemail = value; }
        }

        public string corporate
        {
            get { return _corporate; }
            set { _corporate = value; }
        }

        public string corpiata
        {
            get { return _corpiata; }
            set { _corpiata = value; }
        }

        public byte corpstatus
        {
            get { return _corpstatus; }
            set { _corpstatus = value; }
        }
        #endregion

       
    }
}
